package com.ujiuye.service;

import com.ujiuye.dao.UserDao;
import com.ujiuye.entity.UserInfo;

public class UserService {
    UserDao ud = new UserDao();

    //注册方法-->添加
    public boolean addUser(UserInfo u){
        return ud.addUser(u)>0?true:false;
    }
    //登录的业务逻辑
    public UserInfo userLogin(String name,String pwd){
        return ud.userLogin(name,pwd);
    }
}
